package cn.edu.sgu.www.mhxysy.entity.children;

import cn.edu.sgu.www.mhxysy.consts.IdentifierPrefixes;
import cn.edu.sgu.www.mhxysy.util.StringUtils;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * 子女属性
 * @author 沐雨橙风ιε
 * @version 1.0
 */
@Data
@ApiModel
@TableName("children_attribute")
public class ChildrenAttribute implements Serializable {
	private static final long serialVersionUID = 18L;

	@TableId(value = "id", type = IdType.INPUT)
	@ApiModelProperty(value = "ID")
	private String id;

	/**
	 * 气血
	 */
	@ApiModelProperty(value = "气血")
	private Integer qixue;

	/**
	 * 经验
	 */
	@ApiModelProperty(value = "经验")
	private Integer exp;

	/**
	 * 物理伤害
	 */
	@ApiModelProperty(value = "物理伤害")
	private Integer wlsh;

	/**
	 * 物理防御
	 */
	@ApiModelProperty(value = "物理防御")
	private Integer wlfy;

	/**
	 * 法术伤害
	 */
	@ApiModelProperty(value = "法术伤害")
	private Integer fssh;

	/**
	 * 法术防御
	 */
	@ApiModelProperty(value = "法术防御")
	private Integer fsfy;

	/**
	 * 速度
	 */
	@ApiModelProperty(value = "速度")
	private Integer sudu;

	/**
	 * 子女加点ID
	 */
	@ApiModelProperty(value = "子女加点ID")
	private String jiadianId;

	/**
	 * 子女ID
	 */
	@ApiModelProperty(value = "子女ID")
	private String childrenId;

	public String uuid() {
		return IdentifierPrefixes.PREFIX_ZNSX + StringUtils.uuid();
	}

}